package com.yxjx.duoxue;

import java.util.ArrayList;


import com.thirdparty.neutra.autoscrollloopviewpager.AutoScrollLoopViewPager;
import com.thirdparty.trinea.autoscrollviewpager.AutoScrollViewPager;
import com.yxjx.duoxue.activities.ActivityIntroductionActivity;
import com.yxjx.duoxue.course.CourseIntroductionActivity;
import com.yxjx.duoxue.customview.InnerScrollView;
import com.yxjx.duoxue.customview.InnerWebView;
import com.yxjx.duoxue.customview.OutScrollView;
import com.yxjx.duoxue.datamodel.DMAdItem;
import com.yxjx.duoxue.network.NwUtils;
import com.yxjx.duoxue.utils.UIHelper;
import com.yxjx.duoxue.utils.Utils;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnLayoutChangeListener;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class TestActivity1 extends BaseActionBarActivity {
	private OutScrollView mOutScroll;
	private AutoScrollLoopViewPager pagers;
	private LinearLayout tabs;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.segment_h5);
		WebView wv = (WebView) findViewById(R.id.inner);
		
//		wv.loadUrl("http://www.learnmore.com.cn/m/school_des.html?id=110");
		wv.loadUrl("http://www.learnmore.com.cn/m/courseDetail.html?id=756");
		//http://www.learnmore.com.cn/m/courseDetail.html?id=756
		wv.getSettings().setJavaScriptEnabled(true);
		wv.getSettings().setBuiltInZoomControls(false);
		wv.getSettings().setUseWideViewPort(true);
		
		wv.setWebViewClient(new WebViewClient() {
			@Override
			public void onPageFinished(WebView view, String url) {
				// TODO Auto-generated method stub
				super.onPageFinished(view, url);
			}
			
			@Override
			public void onReceivedError(WebView view, int errorCode,
					String description, String failingUrl) {
				// TODO Auto-generated method stub
				super.onReceivedError(view, errorCode, description, failingUrl);
			}
		});
	}
}
